package cn.wolfcode.wolf2w.job.task;

import cn.wolfcode.wolf2w.business.api.RemoteNoteService;
import cn.wolfcode.wolf2w.business.api.RemoteStrategyService;
import cn.wolfcode.wolf2w.common.core.constant.SecurityConstants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author : 邓风来
 * @date : 2025/9/17 16:00
 */
@Component("travelTask")
public class TravelTask {
    @Autowired
    private RemoteStrategyService remoteStrategyService;

    @Autowired
    private RemoteNoteService remoteNoteService;
    public void test(){

        System.out.println(new Date().toLocaleString());
    }

    public void  statisStrategyRank(){
        remoteStrategyService.statisRank(SecurityConstants.INNER);
    }


    public void  statisStrategyCondition(){
        remoteStrategyService.statisCondition(SecurityConstants.INNER);
    }

    public void strategyStatisHashPersistence(){
        remoteStrategyService.strategyStatisHashPersistence(SecurityConstants.INNER);
    }

    public void noteStatisHashPersistence(){
        remoteNoteService.noteStatisHashPersistence(SecurityConstants.INNER);
    }

}
